package com.hk.model.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class EmployeeVo {
    //用户id
    private Long userId;

    //昵称
    private String userName;

    //密码
    private String password;

    //手机号
    private String phoneNumber;

    //真实姓名
    private String realName;

    //性别 0 女, 1 男
    private Integer sex;

    //邮箱
    private String email;

    //是否是超级管理员 true 是, false 否
    private boolean admin;

    //是否离职 0 否, 1 是
    @JsonSerialize(using = ToStringSerializer.class)
    private Integer delFlag;

    //状态
    private Integer status;

    //部门id
    private Long deptId;

    //职位id
    private Long postId;

    //角色id
    private Long roleId;

    // 创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    // 更新时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    // 创建人
    private String createBy;

    // 修改人
    private String updateBy;

    //备注
    private String remark;
}
